/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package business.Imp;

import data.Imp.FriendListServiceDAOImp;
import data.Services.FriendListDAOService;
import java.sql.ResultSet;
import java.util.List;
import java.util.Vector;
import model.entity.FriendList;
import model.entity.User;

/**
 *
 * @author ninkuhack
 */
public class FriendListServiceImp implements business.Service.FriendListService{
    FriendListDAOService flds = new FriendListServiceDAOImp();
    @Override
    public FriendList getFriendListByID(int friendID, User user) {
        return flds.getFriendListByID(friendID, user);
    }

    @Override
    public List<FriendList> getAllFriendLists() {
        return flds.getAllFriendLists();
    }

    @Override
    public boolean insertFriendList(FriendList friendList) {
        return flds.insertFriendList(friendList);
    }

    @Override
    public boolean updateFriendList(FriendList friendList) {
        return flds.updateFriendList(friendList);
    }

    @Override
    public boolean deleteFriendList(FriendList friendList) {
        return flds.deleteFriendList(friendList);
    }

    @Override
    public boolean deleteFriendList(int friendID) {
        return flds.deleteFriendList(friendID);
    }

    @Override
    public boolean deleteFriendListByUser(int userID) {
        return flds.deleteFriendListByUser(userID);
    }

    @Override
    public boolean deleteFriendList(User user) {
        return flds.deleteFriendList(user);
    }

    @Override
    public boolean restoreFriendList(int friendID) {
        return flds.restoreFriendList(friendID);
    }

    @Override
    public List<FriendList> findFriendListsByUserID(User user) {
        return flds.findFriendListsByUserID(user);
    }

    @Override
    public List<FriendList> findFriendListsByUserID(int userID) {
        return flds.findFriendListsByUserID(userID);
    }

    @Override
    public List<FriendList> findFriendListsByStatus(int status, User user) {
        return flds.findFriendListsByStatus(status, user);
    }

    @Override
    public ResultSet getFriendListByResultSet() {
        return flds.getFriendListByResultSet();
    }

    @Override
    public Vector<FriendList> getFriendListByVector() {
        return flds.getFriendListByVector();
    }
    
}
